package fun.cyhgraph.service;

import com.baomidou.mybatisplus.extension.service.IService;
import fun.cyhgraph.model.dto.SetmealDTO;
import fun.cyhgraph.model.dto.SetmealPageDTO;
import fun.cyhgraph.model.entity.Category;
import fun.cyhgraph.model.entity.Setmeal;
import fun.cyhgraph.model.merchantDto.SetmealMerchantDTO;
import fun.cyhgraph.model.merchantDto.SetmealPageMerchantDTO;
import fun.cyhgraph.result.PageResult;
import fun.cyhgraph.model.vo.DishItemVO;
import fun.cyhgraph.model.vo.SetmealVO;
import fun.cyhgraph.model.vo.SetmealWithPicVO;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    void addSetmeal(SetmealMerchantDTO setmealDTO);

    PageResult getPageList(SetmealPageMerchantDTO setmealPageDTO);

    SetmealVO getSetmealById(Integer id , Integer merchantId);

    void onOff(Integer id , Integer merchantId);

    void update(SetmealDTO setmealDTO);

    void deleteBatch(List<Integer> ids , Integer merchantId);

    List<Setmeal> getList(Integer categoryId);

    List<DishItemVO> getSetmealDishesById(Integer id);

    SetmealWithPicVO getSetmealWithPic(Integer id , Integer merchantId);
}
